﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Private/SiteAdmin.Master" AutoEventWireup="true" CodeBehind="CategoryForm.aspx.cs" Inherits="Obligatorio2013.Pages.CategoryForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        function ValidaNombre(sender, args) {
            args.IsValid = false;
            var reg = new RegExp("^([a-z ñáéíóú]{2,60})$");
            if (reg.test(args.Value)) {
                args.IsValid = true;
            }
        }
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Panel ID="Panel1" runat="server" GroupingText="Category Registration" Height="300px"
        Width="350px">

        <asp:Label ID="lblNombre" runat="server" Width="70px" Text="Nombre"/>
        <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
         <asp:RequiredFieldValidator ID="nameValidator" runat="server" Display="Dynamic"
            ControlToValidate="txtName" ErrorMessage="Nombre es un campo requerido">*</asp:RequiredFieldValidator>
        <br />
        <br />
        <asp:Label ID="lblClaves" runat="server" Width="70px" Text="Palabras Clave"/>
        &nbsp;<br />
        <br />
        <asp:TextBox ID="txtKeys" runat="server" Height="77px" 
            ToolTip="Las claves deben ser separadas por &quot;;&quot;" Width="331px"></asp:TextBox>
        <br />
        <br />
        <br />
        <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" 
            Text="Guardar" />
        &nbsp;&nbsp;
        <asp:Button ID="btnCancel" runat="server" Text="Cancelar" 
            CausesValidation="false" onclick="btnCancel_Click"
             />
            <blockquote dir="ltr" style="margin-right: 0px">
                <p>
                    <asp:Label ID="lblMensaje" runat="server" Style="text-align: justify"></asp:Label>
                    <asp:ValidationSummary ID="vsResumen" runat="server" Width="487px" HeaderText="Resumen de Errores"
                        Style="text-align: justify"></asp:ValidationSummary>

                </p>
            </blockquote>
    </asp:Panel>


</asp:Content>
